# encoding: UTF-8
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)
Product.create(name: 'Mì hảo hảo',
               description: 'Mì hảo hảo ngon tuyệt vời',
               product_type: 'food',
               available: 1,
               image_url: 'products/mihaohao.png',
               orginal_price: 5)
Product.create(name: 'Cà phê sữa đá',
               description: 'Cà phê chính gốc làm từ ca cao',
               product_type: 'coffee',
               available: 1,
               image_url: 'products/mihaohao.png',
               orginal_price: 10)
Product.create(name: 'Cam ép',
               description: 'Nước cam ép tăng cường vitamin A',
               product_type: 'drink',
               available: 1,
               image_url: 'products/mihaohao.png',
               orginal_price: 20)
User.create(username: 'admin',
            password: '123')
User.create(username: 'mod',
            password: '456')
User.create(username: 'guest',
            password: '789')
User.create(username: 'nhtan91',
            password: '123')
Feedback.create(email: 'zzz@zzz.com', content: 'món này ngon vãi', handled: 0)
Feedback.create(email: 'zzz@zzz.com', content: 'món này ngon vãi', handled: 0)
Feedback.create(email: 'zzz@zzz.com', content: 'món này ngon vãi', handled: 0)
Feedback.create(email: 'zzz@zzz.com', content: 'món này ngon vãi', handled: 0)
Feedback.create(email: 'zzz@zzz.com', content: 'món này ngon vãi', handled: 0)
Feedback.create(email: 'zzz@zzz.com', content: 'món này ngon vãi', handled: 0)
Feedback.create(email: 'zzz@zzz.com', content: 'món này ngon vãi', handled: 0)
Feedback.create(email: 'zzz@zzz.com', content: 'món này ngon vãi', handled: 0)
Feedback.create(email: 'zzz@zzz.com', content: 'món này ngon vãi', handled: 0)
Role.create(role: 'backend.login')
Role.create(role: 'frontend.login')
CoffeeStore.create(name: 'cafe123', description: 'ksdhksgkhsdj', lat: '10.77777', lng: '106.707777')
CoffeeStore.create(name: 'cafe456', description: 'hhhhgfhhjf', lat: '10.76777', lng: '106.707777')
CoffeeStore.create(name: 'cafe789', description: 'ytiyt', lat: '10.75777', lng: '106.707777')

